# -*- coding: utf-8 -*-
# This code written by ChanGOGOGO
"""
(实时拨打)导入随机生成的手机号
"""
import sys
import os

current_script_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_script_dir)
if parent_dir not in sys.path:
    sys.path.append(parent_dir)
from callplus_api import OpenAPI

open_api = OpenAPI(env="pet")
inner_task_id = 272
# out_task_id = "dNVKxgYwmZPLrDjVLZdYmFCOiiKTjSfX"
total_phone = 5
customer_info = {"name": "姚先生"}
# customer_info = {}
encryption_type = ""  # 为空-不加密；MD5加密；AES加密
open_api.import_real_time_phone(
    inner_task_id=inner_task_id,
    # out_task_id=out_task_id,
    total_phone=total_phone,
    encryption_type=encryption_type,
    other_customer_info=customer_info,
    tel_valid=True,
)
